﻿<Window x:Class="BizControl.Presentation.Shell.Login"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:res="clr-namespace:BizControl.Presentation.Infrastructure.Properties;assembly=BizControl.Presentation.Infrastructure"
        Background="Transparent" WindowStartupLocation="CenterScreen"
        ResizeMode="NoResize" AllowsTransparency="True" SizeToContent="WidthAndHeight"
        WindowStyle="None"
        Title="{x:Static res:Captions.BizControlMainEntrance}">

    <Grid>
        <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
            <Image Source="{StaticResource keypadImage}" Stretch="None" />
            <TextBlock HorizontalAlignment="Center" Background="Transparent" VerticalAlignment="Top" 
                       TextAlignment="Center"
                       FontSize="18" FontWeight="Bold" Foreground="Black" TextWrapping="Wrap"
                       Text="{x:Static res:Captions.BizControlMain}" Width="120" Margin="80,6,50,0">
    		    <TextBlock.Effect>
    			    <DropShadowEffect Color="DarkGray" />
    		    </TextBlock.Effect>
            </TextBlock>
            <StackPanel Margin="11,60,11,0">
                <TextBox x:Name="UsernameTextBox" VerticalAlignment="Top" Width="150" ToolTip="{x:Static res:Captions.PromptUsername}" />
                <TextBlock HorizontalAlignment="Center" Foreground="DarkGray" Text="{x:Static res:Captions.Username}" />
                <PasswordBox x:Name="PasswordTextBox" VerticalAlignment="Top" Width="150" ToolTip="{x:Static res:Captions.PromptPassword}"  />
                <TextBlock HorizontalAlignment="Center" Foreground="DarkGray" Text="{x:Static res:Captions.Password}" />
                <StackPanel Margin="0,8,0,0" Orientation="Horizontal" HorizontalAlignment="Center">
                    <TextBlock>
                        <Hyperlink x:Name="LoginLink" Click="LoginButton">
                            <TextBlock Text="{x:Static res:Captions.EnterButtonCaption}" />
                        </Hyperlink>
                    </TextBlock>
                    <TextBlock Margin="20,0,0,0">
                        <Hyperlink Click="CancelButton">
                            <TextBlock Text="{x:Static res:Captions.CancelButtonCaption}" />
                        </Hyperlink>
                    </TextBlock>
                </StackPanel>
            </StackPanel>
        </Grid>
    </Grid>
</Window>
